039 comparison
你好,在这个视频中,我们将学习作文说明。
Hello, in this video, we are going to learn composition instructions.
好的,现在让我们从第一件事开始。
OK, now let's start with the first thing.
我将在这里添加一个函数框和相等性。
I will add a function box to here and equality.
好吧,我们还需要做一件事。
OK, we need to do one more thing.
首先,在这里,这里,一个问号,然后你就离开了。
Firstly, in here, here, a question sign and then you left.
单击它。
Click to it.
你会看到整数、双精度、整数、实数和字节等。
You will see integer, double, integer, real and byte, etc..
这些都是数据类型。
These are all data types.
所以它询问我们您将使用哪种数据类型。
So it is asking to us which data type that you are going to use.
这些数据包含一个值以及您要比较的值。
And this data are included a value and which values that you are going to compare.
好的,我们需要选择整数。
OK, we need to select integer.
那么会发生什么呢?
So what will happen?
我要比较的两个数据将是整数值。
My two data that is going to be compared altogether is going to be integer value.
因此我们可以说整数值,例如 12,另一个区域我们可以说 M w,例如 20。
So integer values we can say, for example, 12 and another area we can say M w for example, 20.
这是第一件事。
This is the first thing.
对于输出,我们可以说。
And for output we can say.
问:一点零,我们可以比较的第二件事,嗯,不相等,我们该怎么做?
Q One point zero, and the second thing which we can compare, um, not equality, how can we do this?
我们可以在此处再添加一项功能。
We can add one more function back to here.
这不是同等的指令。
This is not equal instructions.
另外,如果你左键点击这里,你会看到一个完整的,呃,比较说明,说,好吧,这不相等。
Also, if you left click to here, you will see a complete, uh, compare instructions saying, OK, this is not equal.
例如,我们可以说二十五,因为它给出了错误率。
And we can say twenty five, for example, because it's giving an error rate.
为什么我们没有选择我们的数据类型。
Why we did not selected our data type.
我将再次选择整数,然后我们可以说,例如,琥珀色。
I will select integer again and then we can say for example, ambered for example.
二十五,好的,对于输出,我会说。
Twenty five, OK, and for output, I will say to.
一点一,好,接下来,如果你的值是实值或者浮点值,你会怎么做?
One point one, OK, and the next thing, if your value is a real value or floating value, what will you do?
我将再次坚持比较指导,相等与不相等。
I will adhere to compare instruction once more, equality and or not equality.
或者我们可以说,例如。
Or we can say, for example.
更大,好,十二点五,所以这是一个真正的好,我现在会说,真实的数据类型,我会说,例如,十点九十六和作为输出。
Greater, OK, and twelve point five, so this is a real OK, and I will say it now, real data type and I will say, for example, ten point ninety six and as output.
问零点五并不重要。
Q zero point five doesn't matter.
好的,现在我们可以启动我们的模拟器了。
OK, now we can start our simulator.
我们可以检查我们的比赛是否正常运行。
And we can check once our competitions are working correctly or not.
现在需要对其进行编译。
Now it needs to be compiled.
现在它正在编译我们的配置,我们会说很多并启动我们的模块。
Now it's compiling our configuration and we will say a lot and start our modules.
我会说现在就结束。
And I will say finish now.
现在我们可以监控我们的CPU的运行情况。
We can monitor now our CPU's also run situation.
现在看。
Look now.
二十五不等于零。
Twenty five is not equal to zero.
所以我们有一个输出。
So we have an output.
如果我改变这个值,修改操作数,然后我会说二十五。
If I change this value, modify operand and then I will say twenty five.
这并不是因为现在不相等,而是二十五等于二十五,对我们来说等于零不等于。
That is not because now this is not equal but twenty five equal to twenty five for years eve to us equal to zero not equal.
所以没有输出。
So there is no output.
我将其更改为十二,我们将得到输出。
I will change it to twelve and we will get output.
然后让我们在这里检查一下我们的扁平化数字。
And then let's check our flatting numbers in here.
十二点五比十点九十六大。
Twelve point five is bigger than ten point ninety six.
所以我们有一个输出。
So we have an output.
如果我将此值更改为例如十三个零,我将立即进行下载。
If I change this value to for example thirteen point zero and I will do a download immediately.
不行,现在您将看到没有输出,因为十二点五不高于十三点零。
Not OK, and now you will see there is no output because twelve point five is not higher than thirteen point zero.
所以这些都是你可以说的所有比较,例如,不是,嗯,例如,大于或等于这样。
So this these are all the comparisons you can say, for example, not, um, for example, greater than or equal like this.
我们将再次获得输出。
We will get output again.
我会下载一个,然后我会说,主啊。
I will do a download and I will say, Lord.
现在,因为它可以,更大的符号,但如果我将其更改为 13,等号也等于 12。
Now, because of it is OK, greater sign, but also equality signs equal to 12 if I change it to 13.
输出没了。
The output is gone.
如果我把它改成11。
If I change it to 11.
我们有一个输出,或者如果我将其更改为 12。
We have an output or if I change it to 12.
抱歉,修改操作数和12,我们还是出局了,但这就是竞争,你需要关注的。
Sorry, modify operand and 12, we still out, but this is the competition, what you need to focus.
这是首先要重点关注的。
This is the first thing focus.
一。
One.
数据类型。
Data type.
第二场比赛。
Second competition.
指令,好的,就像来自这里的酷或不等于或大于或小于,以及来自这里的整数和其他数据类型。
Instruction, OK, like a cool or not equal or greater than or less than from here and also integer and other data types from here.
好吧,我今年已经完成了。
OK, I finished for this year.
下一个视频见。
See you in the next video.